home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
shells
/
kiss-0.11
/
kiss-0
/
kiss
/
src
/
setquotedstring.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-03-23
|
307b
|
20 lines
#include "kiss.h"
Stringstack setquotedstring (char *str, int quote)
{
register int
len = strlen (str) - 1;
Stringstack
ret;
if (len > 0 && str [len] == quote)
{
str [len] = '\0';
ret = setstring (str + 1);
str [len] = quote;
return (ret);
}
else
return (setstring (""));
}